package com.ling.feign.plus.gson;

import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

import java.io.IOException;

public class IntegerTypeAdapter extends TypeAdapter<Integer> {
    @Override
    public void write(JsonWriter out, Integer value) throws IOException {

    }

    @Override
    public Integer read(JsonReader jsonReader) throws IOException {
        return jsonReader.nextInt();
    }
}
